<template>
    我的id是{{ $route.params.id }}
    <br>
    <button @click="goBack">返回</button>
</template>
<script setup>
import router from '@/router';
const goBack =()=>{
    router.go(-1)
}
</script>
<style></style>